#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
    vector<int> v;
    int temp;
    while(cin>>temp)
        v.push_back(temp);
    
    sort(v.begin(),v.end());
    cout<<"从标准设备读入数据，直到输入是非整型数据为止"<<endl;
    
    auto i = v.begin();
    for(; i<v.end(); i++)
        cout<<" "<<*i;
    //cout<<*i<<endl;
}